@charset "UTF-8";
/**
 * 
 * @Input.css
 * @author xinxuzhang 
 * @create 15-06-16
 */
/*disabled X for IE */
input:not([type=search])::-ms-clear {
  display: none; }

/* reset [type=search] ui */
[type=search] {
  -webkit-appearance: none;
  box-sizing: content-box; }

[type=search]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-right: -2px;
  background: #b6bbc6 url() no-repeat center;
  background-size: 20px 20px;
  -webkit-transition: background-color .15s;
  transition: background-color .15s;
  cursor: pointer; }

[type=search]::-webkit-search-cancel-button:hover {
  background-color: #4c5161; }

input[type="search"]::-webkit-search-results-decoration {
  display: none; }

input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  background-color: transparent; }

input[disabled], input[readonly] {
  cursor: default; }

input.ui-input,
.ui-input > input {
  height: 20px;
  line-height: 20px;
  padding: 9px 8px;
  border: 1px solid #d0d0d5;
  border-radius: 4px;
  background-color: #fff;
  font-size: 14px;
  outline: none;
  color: #4c5161;
  -webkit-transition: border-color .15s, background-color .15s;
  transition: border-color .15s, background-color .15s; }

.ui-input:hover,
.ui-input:hover > input {
  border-color: #ababaf; }

.ui-input:focus,
.ui-input > input:focus {
  border-color: #00a5e0; }

span.ui-input {
  display: inline-block; }

div.ui-input > input {
  width: 100%;
  height: 40px;
  -ms-box-sizing: border-box;
  box-sizing: border-box; }

/* input with count */
.ui-input-x {
  position: relative;
  padding: 0 56px 0 3px;
  border-radius: 4px;
  overflow: hidden; }

.ui-input-x > input {
  display: block;
  width: 100%;
  height: 20px;
  line-height: 20px;
  padding: 9px 0 9px;
  border: 0 none;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  right: -6px;
  color: #4c5161;
  font-size: 14px;
  outline: none;
  background: none;
  background-clip: content-box;
  position: relative;
  z-index: 1; }

.ui-input-x > .ui-input {
  position: absolute;
  border: 1px solid #d0d0d5;
  border-radius: 4px;
  background-color: #fff;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  -webkit-transition: border-color .15s, background-color .15s;
  transition: border-color .15s, background-color .15s; }

.ui-input-count {
  line-height: 38px;
  padding: 0 2px;
  background-color: #fff;
  color: #a2a9b6;
  font-size: 12px;
  white-space: nowrap;
  position: absolute;
  right: 8px;
  top: 1px;
  z-index: 1; }

.ui-input-x:hover > .ui-input {
  border-color: #ababaf; }

/* 注意相邻位置，如果文本域前后位置发生变化，表单验证组件Validate.js 中 getTarget那里逻辑也要变化 */
.ui-input-x > input:focus ~ .ui-input {
  border-color: #00a5e0; }

.ui-input-x .ui-placeholder {
  padding: 9px 7px;
  z-index: 1; }

/* type=[search] with icon */
div.ui-search-input,
span.ui-search-input {
  position: relative; }

.ui-search-input > input {
  padding-left: 40px; }

.ui-icon-search {
  position: absolute;
  left: 3px;
  top: 1px;
  width: 20px;
  height: 20px;
  border: solid #fff;
  border-width: 9px 8px;
  -webkit-transition: background-color .2s;
  transition: background-color .2s;
  text-indent: -9em;
  cursor: pointer;
  overflow: hidden; }

.ui-search-input:hover .ui-icon-search {
  background-color: #ababaf; }

.ui-search-input > input:focus ~ .ui-icon-search {
  background-color: #00a5e0; }

.ui-search-input > .error ~ .ui-icon-search,
.ui-search-input > .error:focus ~ .ui-icon-search {
  background-color: #f4615c; }

/* IE使用png图片, 虽然IE9+支持SVG，但是貌似渲染太慢，会暴露色块 */
.ui-icon-search,
.ui-search-right > .ui-icon-search:after {
  background: #b6bbc6 url() no-repeat; }

/* IE13+和其他现代浏览器使用SVG */
@supports (display: none) {
  .ui-icon-search,
  .ui-search-right > .ui-icon-search:after {
    background-image: url();
    background-size: 20px 20px; } }

/* type=[search] icon right */
.ui-search-right:after {
  display: inline-block;
  content: '';
  height: 25px; }

div.ui-search-right {
  -ms-box-sizing: border-box;
  box-sizing: border-box;
  padding-right: 40px;
  overflow: hidden; }

.ui-search-right > input {
  float: left;
  padding-left: 8px;
  padding-right: 0;
  border-width: 1px 0 1px 1px;
  border-color: transparent !important;
  background: none;
  position: relative;
  z-index: 1; }

.ui-search-right > .ui-icon-search {
  position: static;
  float: left;
  margin-top: 1px;
  margin-right: 1px; }

div.ui-search-right > .ui-icon-search {
  margin-right: -40px; }

.ui-search-right > .ui-icon-search:before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border: 1px solid #d0d0d5;
  background-color: #fff;
  border-radius: 4px;
  -webkit-transition: border-color .15s;
  transition: border-color .15s; }

.ui-search-right > .ui-icon-search:after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  -webkit-transition: background-color .2s;
  transition: background-color .2s; }

.ui-search-right:hover .ui-icon-search:before {
  border-color: #ababaf; }

.ui-search-right:hover .ui-icon-search:after {
  background-color: #ababaf; }

.ui-search-right > input:focus ~ .ui-icon-search:before {
  border-color: #00a5e0; }

.ui-search-right > input:focus ~ .ui-icon-search:after {
  background-color: #00a5e0; }

.ui-search-right .ui-placeholder {
  z-index: 1; }

span.ui-search-right > .ui-placeholder {
  margin-left: 0 !important;
  left: 0;
  *left: 9px; }

/* IE7 */
@media screen\9 {
  div.ui-input,
  span.ui-input {
    height: 20px;
    padding: 9px 8px;
    border: 1px solid #d0d0d5;
    background-color: #fff; }
  div.ui-input > input,
  span.ui-input > input {
    height: 20px;
    border: 0 none;
    padding: 0;
    margin: -1px 0;
    float: none; }
  input.ui-input,
  span.ui-input {
    vertical-align: middle; }
  div.ui-search-input,
  span.ui-search-input {
    padding: 8px 8px 10px 40px; }
  div.ui-search-right,
  span.ui-search-right {
    padding-left: 8px;
    padding-right: 40px; }
  .ui-icon-search {
    background-image: url(images/Input/icon-search.png);
    left: 0;
    top: 0; }
  span.ui-search-right .ui-icon-search,
  div.ui-search-right .ui-icon-search {
    position: absolute;
    top: 0;
    left: auto;
    right: 0;
    margin: 0; } }

/* disabled */
.ui-input[disabled]:hover,
.ui-input > input[disabled]:hover,
.ui-input[readonly]:hover,
.ui-input > input[readonly]:hover,
.ui-input[readonly]:focus,
.ui-input > input[readonly]:focus {
  border-color: #d0d0d5; }

/* error */
.ui-input.error,
.ui-input > .error {
  border-color: #f4615c !important; }
